<?php
namespace app\houtai\controller;
use app\houtai\controller\Base;
use think\Controller;
use think\Db;
use think\Session;
class admin extends Base
{
    public function edit()
    {
    	
        return view();
    }
    public function editajax()
    {
    	$id=input('id');
    	$password=md5(input('password'));
    	$res=db('admin')->where('id',$id)->update(['password'=>$password]);
    	if($res==0){
    		return json_encode([
    			'status'=>0,
    		]);
    	}else{
    		return json_encode([
    			'status'=>1,
    		]);
    	}
    }
}
